package org.luckyjourney.entity.user;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import java.util.Set;


import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.luckyjourney.config.QiNiuConfig;
import org.luckyjourney.entity.BaseEntity;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 
 * </p>
 *
 * @author xhy
 * @since 2023-10-24
 */
@Data
@TableName("regular_users")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User implements Serializable{

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // @ApiModelProperty("用户名")
    private String nickName;

    @TableField(exist = false)
    private Boolean each;

    // @Email
    // private String email;

    @NotBlank(message = "密码不能为空")
    private String password;

    private String description;

    // true 为男，false为女
    private Boolean sex;

    // 用户默认收藏夹id
    private Long defaultFavoritesId;

    // 头像
    private String avatar;

    private Integer status;

    // @ApiModelProperty("用户手机号")
    private String phone;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreated;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdated;

    private String cover;

    private Integer moduleId;

    private String openid;
    @ApiModelProperty("入驻状态0未入驻1已入驻")
    private Integer settledStatus;

}
